﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace TjZheng.Controls
{
    public static class QueryInfoHelper
    {
        public static MvcHtmlString CreateQueryInfo(this HtmlHelper htmlHelper, QueryInfo objQueryInfo)
        {
            if (objQueryInfo == null)
            {
                throw new Exception("查询控件不能为空");
            }
            return MvcHtmlString.Create(objQueryInfo.QueryToHtml());
        }
    }
}
